package com.zhku.meeting.controller;

import com.zhku.meeting.Annotation.loginCharacter;
import com.zhku.meeting.entities.MeetingRecord;
import com.zhku.meeting.entities.Msg;
import com.zhku.meeting.service.MeetingRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class MeetingRecordController {

    @Autowired
    private MeetingRecordService meetingRecordService;


    //分页查询所有会议信息
    @loginCharacter
    @GetMapping("/meetingRecords")
    public Msg getAllMeetingRecord(@RequestParam Map<String,Object> para){
            return meetingRecordService.getAll(para);
    }

//    //模糊条件查询会议信息
//    @loginCharacter
//    @GetMapping("/meetingRecordCondition")
//    public Msg getMeetingRecordCondition(@RequestParam Map<String,Object> para){
//        return meetingRecordService.getMeetingRecordCondition(para);
//    }

//    @loginCharacter
//    @GetMapping("/meetingRecord")
//    public Msg getMeetingRecord(@RequestParam Map<String, Object> para) {
//
//        return meetingRecordService.getHistory(para);
//    }
}
